package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.OOP.dangnhaphethong;

import java.util.Scanner;

public class View {

	public static void main(String[] args) {
		
		System.out.println("username ");
		Scanner in = new Scanner(System.in);
		String username = in.nextLine();
		System.out.println("password");
		String password = in.nextLine();
		
		Userinfo user = new Userinfo();
		
		user.setUsername(username);
		user.setPassword(password);

		Controller cuser = new Controller(user);

		if (cuser.Checkuser()) {
			System.out.println("Login success");
		} else {
			System.out.println("Login fail");
		}
	}
}
